<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  <?php
  if (isset($_GET['login']) or $is_admin) {
    $show_sidebar = TRUE;
  } else {
    $show_sidebar = FALSE;
  }
  ?>
<html xmlns="http://www.w3.org/1999/xhtml"
      xml:lang="<?php print $language->language ?>"
      lang="<?php print $language->language ?>"
      dir="<?php print $language->dir ?>">
  <head>
    <?php print $head; ?>
    <title><?php print $head_title; ?></title>
    <?php print $styles; ?>
    <script type="text/javascript" src="<?php print base_path(); ?>js/dojo/dojo.js" djConfig="parseOnLoad:true"></script>
    <?php print $scripts; ?>
    <script type="text/javascript"><?php /* Needed to avoid Flash of Unstyled Content in IE */ ?></script>
  </head>
  <body class="<?php print $body_classes; ?>">
    <table id="page">
      <tr id="header">
        <td id="top-left-cell" class="main top left">
          <div id="top-left" class="content"></div>
        </td>
        <td id="top-center-cell" class="main top center">
          <a id="top-center-logo" href="<?php print ($base_path . "node"); ?>"></a>
          <a id="top-center-offerte" href="<?php print ($base_path . "pagine/listino"); ?>"></a>
          <div id="top-center" class="content">
            <?php print $header; ?>
          </div>
        </td>
        <td id="top-right-cell" class="main top right">
          <div id="top-right" class="content"></div>
        </td>
      </tr>
      <tr id="content">
        <td id="middle-left-cell" class="main middle left" rowspan="2">
          <div id="middle-left" class="content">
            <?php if ($show_sidebar) print $left; ?>
          </div>
        </td>
        <td id="middle-center-cell" class="main middle center">
          <div id="middle-center" class="content">
            <?php
            if ($is_front) {
              show_front();
            } else {
              print "<h1>$title</h1>\n";
              if ($show_sidebar) {
                print "<div>$breadcrumb</div>\n";
                print "<div>$tabs</div>\n";
              }
              if ($show_messages) {
                print "<div>$messages</div>\n";
              }
              print $content;
            }
            ?>
          </div>
        </td>
        <td id="middle-right-cell" class="main middle right" rowspan="2">
          <div id="middle-right" class="content">
            <?php if ($show_sidebar) print $right; ?>
          </div>
        </td>
      </tr>
      <tr id="footer">
        <td id="bottom-center-cell" class="main bottom center">
          <div id="bottom-center" class="content">
            <?php print $footer_message ?>
            <?php print $footer; ?>
          </div>
        </td>
      </tr>
    </table>
    <?php print $closure ?>
  </body>
</html>
